package com.mohan.system.manage.service;

import org.apache.shiro.spring.web.ShiroFilterFactoryBean;

import java.util.Map;

/**
 * @author mohan
 */
public interface IShiroService {
    /**
     * 获取放行的资源
     * @return
     */
    Map<String, String> loadFilterChainDefinitionMap();

    /**
     * 放行
     * @param shiroFilterFactoryBean
     * @param roleId
     * @param isRemoveSession
     */
    void updatePermission(ShiroFilterFactoryBean shiroFilterFactoryBean,
                          Integer roleId,
                          Boolean isRemoveSession);
}
